package chat;

import java.sql.Time;
import java.util.Date;

public class Message
{
	private String username;
	private String text;
	private Time time;

	public Message(String username, String text)
	{
		this.username = username;
		this.text = text;
		this.time = new Time(new Date().getTime());
	}

	public String getText()
	{
		return text;
	}

	public String getUsername()
	{
		return username;
	}

	public Time getTime()
	{
		return time;
	}
}